package com.xxx.generic;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/21 14:20
 * @Copyright 博为峰
 */
public class MyColl<F> {
    private F s;

    public F getS() {
        return s;
    }

    public void setS(F s) {
        this.s = s;
    }

    //泛型方法
    public <T> void show(T s) {
        System.out.println("s = " + s);
    }
}
